# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=zimwriterfs
pkgver=1.3.10
pkgrel=0
pkgdesc="Console tool to create ZIM files"
url="https://openzim.org/"
arch="all !mips !mips64" # blocked by libzim-dev
license="GPL-3.0-or-later"
makedepends="meson gumbo-parser-dev file-dev libzim-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/openzim/zimwriterfs/archive/$pkgver.tar.gz"

build() {
	abuild-meson . output
	ninja -C output
}

check() {
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install

	install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
}

sha512sums="cc0d6c30e163c7597ac7020b2809b320df45375a8bd43672214ef1e575cd19070d034e3b8a5adbe141e1f91fab4a742761791caae13e9f0df269ec06cb603be2  zimwriterfs-1.3.10.tar.gz"
